Optimal. Leaf size=42 \[ -\frac {1}{a^2 x}-\frac {b}{a^2 (a+b x)}-\frac {2 b \log (x)}{a^3}+\frac {2 b \log (a+b x)}{a^3} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.02, antiderivative size = 42, normalized size of antiderivative = 1.00, number of steps
used = 2, number of rules used = 1, integrand size = 11, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.091, Rules used = {46}
\begin {gather*} -\frac {2 b \log (x)}{a^3}+\frac {2 b \log (a+b x)}{a^3}-\frac {b}{a^2 (a+b x)}-\frac {1}{a^2 x} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 46
Rubi steps
\begin {align*} \int \frac {1}{x^2 (a+b x)^2} \, dx &=\int \left (\frac {1}{a^2 x^2}-\frac {2 b}{a^3 x}+\frac {b^2}{a^2 (a+b x)^2}+\frac {2 b^2}{a^3 (a+b x)}\right ) \, dx\\ &=-\frac {1}{a^2 x}-\frac {b}{a^2 (a+b x)}-\frac {2 b \log (x)}{a^3}+\frac {2 b \log (a+b x)}{a^3}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.03, size = 35, normalized size = 0.83 \begin {gather*} -\frac {a \left (\frac {1}{x}+\frac {b}{a+b x}\right )+2 b \log (x)-2 b \log (a+b x)}{a^3} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.09, size = 43, normalized size = 1.02
method | result | size |
default | \(-\frac {1}{a^{2} x}-\frac {b}{a^{2} \left (b x +a \right )}-\frac {2 b \ln \left (x \right )}{a^{3}}+\frac {2 b \ln \left (b x +a \right )}{a^{3}}\) | \(43\) |
risch | \(\frac {-\frac {2 b x}{a^{2}}-\frac {1}{a}}{x \left (b x +a \right )}-\frac {2 b \ln \left (x \right )}{a^{3}}+\frac {2 b \ln \left (-b x -a \right )}{a^{3}}\) | \(49\) |
norman | \(\frac {\frac {2 b^{2} x^{2}}{a^{3}}-\frac {1}{a}}{x \left (b x +a \right )}-\frac {2 b \ln \left (x \right )}{a^{3}}+\frac {2 b \ln \left (b x +a \right )}{a^{3}}\) | \(50\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A]
time = 0.27, size = 45, normalized size = 1.07 \begin {gather*} -\frac {2 \, b x + a}{a^{2} b x^{2} + a^{3} x} + \frac {2 \, b \log \left (b x + a\right )}{a^{3}} - \frac {2 \, b \log \left (x\right )}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A]
time = 0.63, size = 63, normalized size = 1.50 \begin {gather*} -\frac {2 \, a b x + a^{2} - 2 \, {\left (b^{2} x^{2} + a b x\right )} \log \left (b x + a\right ) + 2 \, {\left (b^{2} x^{2} + a b x\right )} \log \left (x\right )}{a^{3} b x^{2} + a^{4} x} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [A]
time = 0.10, size = 37, normalized size = 0.88 \begin {gather*} \frac {- a - 2 b x}{a^{3} x + a^{2} b x^{2}} + \frac {2 b \left (- \log {\left (x \right )} + \log {\left (\frac {a}{b} + x \right )}\right )}{a^{3}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [A]
time = 0.99, size = 52, normalized size = 1.24 \begin {gather*} -\frac {2 \, b \log \left ({\left | -\frac {a}{b x + a} + 1 \right |}\right )}{a^{3}} - \frac {b}{{\left (b x + a\right )} a^{2}} + \frac {b}{a^{3} {\left (\frac {a}{b x + a} - 1\right )}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [B]
time = 0.12, size = 45, normalized size = 1.07 \begin {gather*} \frac {2\,b\,\ln \left (\frac {a+b\,x}{x}\right )}{a^3}-\frac {1}{a\,x\,\left (a+b\,x\right )}-\frac {2\,b}{a^2\,\left (a+b\,x\right )} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________